<template>
  <div id="list">
    <div class="heads">
      <div class="top_l">
        <span class="arrows"></span>
      </div>
      <van-search placeholder="请输入搜索关键词" v-model="value" style="flex:1" />
      <div class="top_r">地图</div>
    </div>
    <!-- 导航 -->
    <nav>
      <li><i class="iconfont icon-tianmaomendianziti increase"></i>门店</li>
      <li><i class="iconfont icon-icon increase"></i>分类</li>
      <li><i class="iconfont icon-paixu increasex"></i>默认排序</li>
    </nav>
    <!-- 列表 -->
    <div class="shoplist">
      <ul>
        <li>
          <div class="min">
            <div class="m_l">
              <img
                src="http://i1.mallcoo.cn/sp_mall/64188b31-d441-4462-a646-abe504b5774a_160x160_0_0_80.jpg"
                alt
                width="100%"
              />
            </div>
            <div class="m_r">
              <h6>SHINING HOUSE 钻石世家</h6>
              <p>
                <span>珠宝/黄金</span>
                <span>1F L131-1</span>
              </p>
              <i class="iconfont icon-dingwei position"></i>
            </div>
          </div>
        </li>
        <li>
          <div class="min">
            <div class="m_l">
              <img
                src="http://i1.mallcoo.cn/sp_mall/64188b31-d441-4462-a646-abe504b5774a_160x160_0_0_80.jpg"
                alt
                width="100%"
              />
            </div>
            <div class="m_r">
              <h6>SHINING HOUSE 钻石世家</h6>
              <p>
                <span>珠宝/黄金</span>
                <span>1F L131-1</span>
              </p>
              <i class="iconfont icon-dingwei position"></i>
            </div>
          </div>
        </li>
      </ul>
    </div>
    <!-- 遮罩 -->
    <div class="mask"></div>
    <div class="Category">
      <ul>
        <li class="cur">全部</li>
        <li>尚生活1号楼</li>
        <li>尚生活1号楼</li>
        <li>尚生活1号楼</li>
        <li>尚生活1号楼</li>
        <li>尚生活1号楼</li>
        <li>尚生活1号楼</li>
        <li>尚生活1号楼</li>
        <li>尚生活1号楼</li>
        <li>尚生活1号楼</li>
        <li>尚生活1号楼</li>
      </ul>
    </div>
  </div>
</template>
<script>
import Vue from "vue";
import { Search } from "vant";
Vue.use(Search);
export default {
  data() {
    return {
      value: ""
    };
  }
};
</script>
<style lang="scss" scoped>
@mixin clearfix() {
  &::after {
    content: "";
    display: block;
    height: 0;
    clear: both;
  }
}
#list {
  font-size: 0.319716rem;
  ul,
  li {
    list-style: none;
  }
  .van-field__control {
    line-height: 0;
  }
  .heads {
    display: flex;
    width: 100%;
    .top_l {
      padding-left: 0.26643rem;
      line-height: 1.438722rem;
      .arrows {
        content: "";
        display: inline-block;
        width: 0.32rem;
        height: 0.32rem;
        margin-left: 0.16rem;
        border: 1px #555 solid;
        border-width: 0 1px 1px 0;
        transform: rotate(135deg);
        -webkit-transform: rotate(135deg);
        vertical-align: middle;
      }
    }
    .top_r {
      line-height: 1.438722rem;
      font-size: 0.35rem;
      padding-right: 0.26643rem;
    }
  }
  nav {
    display: flex;
    justify-content: center;
    border-top: 1px #f4f4f4 solid;
    padding: 0.079929rem 0;
    li {
      height: 1.039077rem;
      flex: 1;
      display: flex;
      justify-content: center;
      align-items: center;
      border-right: 1px #f4f4f4 solid;
      font-size: .346359rem;
      .increase{
          font-size: .513002rem;
      }
      .increasex{
        font-size: .346359rem;
      }
      i{
        margin-right: .079929rem;
      }
    }
  }
  .shoplist {
    background-color: #f4f4f4;
    padding-top: 0.26643rem;
    ul {
      li {
        margin-top: 0.26643rem;
        .min {
          @include clearfix();
          background-color: #ffffff;
          padding: .346359rem;
          .m_l {
            width: 2.131441rem;
            font-size: 0;
            border: 1px #dfdfdf solid;
            float: left;
            @include clearfix();
            margin-right: .612789rem;
          }
          .m_r {
            position: relative;
            float: left;
            @include clearfix();
            padding-right: 1.198935rem;
            margin-top: .26643rem;
            h6 {
              font-size: 0.4rem;
              font-weight: 500;
              margin-bottom: .319716rem;
            }
            p{
              span{
                  color: #666666;
                  font-size: .3rem;
                  &:nth-child(1){
                    margin-right: .53286rem;
                  }
              }
            }
          }
          .position{
            font-size: 0.712789rem;
            position: absolute;
            top: 50%;
            right: 0;
            transform: translate(0,-50%);
          }
        }
        &:first-child {
          margin-top: 0;
        }
      }
    }
  }
  .mask{
    position: fixed;
    top: 2.611015rem;
    bottom: 0;
    width: 100%;
    background: rgba(0,0,0,.8);
    z-index: 22;
    display: none;
  }
  .Category{
    position: absolute;
    top: 2.611015rem;
    right: 0;
    left: 0;
    z-index: 23;
    max-height: 5.541746rem;
    overflow: hidden;
    overflow-y: scroll;
    display: none;
    ul{
      padding: 0 .399645rem;
      background-color: #ffffff;
      // overflow: hidden;
      li{
        background-color: #ffffff;
        width: 100%;
        text-align: center;
        border-top: 1px solid  #f4f4f4;
        font-size: .426288rem;
        padding: .26643rem 0;
      }
    }
  }
}
</style>
